package cn.wolfcode.designpattern.observer;

/**
 * @author Leon
 * @date 2021/3/2
 */
public class Client {

    public static void main(String[] args) {
        Rate rate = new RMBrate();
        Company watcher1 = new ImportCompany();
        Company watcher2 = new ExportCompany();

        rate.add(watcher1);
        rate.add(watcher2);

        rate.change(10);
        rate.change(-9);
    }
}
